#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <math.h>

void swap(int* x, int* y)
{
	int temp = *x;
	*x = *y;
	*y = temp;
}
int main()
{
	int num1, num2;
	scanf("%d %d", &num1, &num2);
	swap(&num1, &num2);
	printf("%d %d", num1, num2);
	return 0;
}